﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HeritageAcademy.Shared
{
    public static class DataFileParsing
    {
        /// <summary>
        /// Convert (separate) input string into test and answer id's.
        /// </summary>
        /// <param name="inputString">Input string</param>
        /// <returns>string[0] - test id; string[1] - answer id</returns>
        public static string[] SeparateString(string inputString, string delimeter)
        { 
            var separator = Convert.ToChar(delimeter);
            return inputString.Split(separator);
        }
    }
}
